package cn.haohaowo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.kafka.core.KafkaTemplate;

import javax.annotation.PostConstruct;

/**
 * Created by luwancai on 18/5/19.
 * DESC:
 */
@SpringBootApplication
@EnableEurekaClient
public class AccountApplication {

    @Autowired
    @Qualifier("haoShopKafkaTemplate")
    private KafkaTemplate kafkaTemplate;

    public static void main(String[] args) {
        SpringApplication.run(AccountApplication.class, args);
    }

//    @PostConstruct
//    public void doProducer() {
//        kafkaTemplate.send("testThree", "Hello, I'm spring boot account");
//    }

}
